//
//  BaseViewManager.h
//  ZYOnlineSchool
//
//  Created by 毕武侠 on 2017/2/24.
//  Copyright © 2017年 bwx. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ViewManagerProtocol.h"
#import "ViewSignalProtocol.h"

@interface BaseViewManager : NSObject

// 只暴漏出方法
- (instancetype)initWithSuperView:(UIView *)view;
- (instancetype)initWithSuperView:(UIView *)view ofModel:(BaseModel *)model;
- (instancetype)initWithSuperView:(UIView *)view ofDatas:(NSMutableArray *)datas;

// 只做逻辑处理
- (instancetype)initWithModel:(BaseModel *)model;
- (instancetype)initWithDatas:(NSMutableArray *)datas;

// 支持xib的方法
- (instancetype)initWithView:(UIView *)view;
- (instancetype)initWithView:(UIView *)view ofModel:(BaseModel *)model;
- (instancetype)initWithView:(UIView *)view ofDatas:(NSMutableArray *)datas;


// 用来让子类集成的
- (void)setupConfigure;

@property (nonatomic, weak)   UIView    *superView;

// 这两个是否暴漏，有待考察
@property (nonatomic, strong) UIView    *view;
@property (nonatomic, strong, readonly) BaseModel *model;
@property (nonatomic, strong, readonly) NSMutableArray *datas;

- (void)uploadXIBViewConstraint:(UIView *)aView;

@end
